-- GENERATED SPELL FOR [Phasing Cleric] --


function spell0_18557(pUnit, Event) --@Heal,Heal--
pUnit:FullCastSpellOnTarget(22883,pUnit)
pUnit:RegisterEvent('Sorts_18557', 3500, 1)
end

function spell1_18557(pUnit, Event) --@Major Heal,Heal--
pUnit:FullCastSpellOnTarget(33324,pUnit)
pUnit:RegisterEvent('Sorts_18557', 3000, 1)
end

function spell2_18557(pUnit, Event) --@Renew,Heal--
pUnit:FullCastSpellOnTarget(25058,pUnit)
pUnit:RegisterEvent('Sorts_18557', 15000, 1)
end

function spell3_18557(pUnit, Event) --@Renew,Heal--
pUnit:FullCastSpellOnTarget(38210,pUnit)
pUnit:RegisterEvent('Sorts_18557', 15000, 1)
end

function Sorts_18557(pUnit, Event)
local choix_sorts_18557 = math.random(0, 3)
if choix_sorts_18557 == 0 then
pUnit:RegisterEvent('spell0_18557', 1, 1)
end
if choix_sorts_18557 == 1 then
pUnit:RegisterEvent('spell1_18557', 1, 1)
end
if choix_sorts_18557 == 2 then
pUnit:RegisterEvent('spell2_18557', 1, 1)
end
if choix_sorts_18557 == 3 then
pUnit:RegisterEvent('spell3_18557', 1, 1)
end
end

function mob18557_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_18557', math.random(1500, 3000), 1)
end

function mob18557_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob18557_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob18557_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(18557, 1, 'mob18557_Action')
RegisterUnitEvent(18557, 2, 'mob18557_Leave')
RegisterUnitEvent(18557, 3, 'mob18557_Kill')
RegisterUnitEvent(18557, 4, 'mob18557_Die')
